﻿#pragma once

#include <QStyledItemDelegate>
#include <QWidget>

class BucketDelegate : public QStyledItemDelegate
{
    Q_OBJECT
public:
    QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option,
                          const QModelIndex& index) const override;

    void setEditorData(QWidget* editor, const QModelIndex& index) const override;
    void setModelData(QWidget* editor, QAbstractItemModel* model,
                      const QModelIndex& index) const override;

public:
    BucketDelegate(QObject* parent = nullptr);
    ~BucketDelegate();
};
